﻿@using Models
@model List<News>

@{
    ViewBag.Title = "Search result";
}

<h2>Search result</h2>

@for (int i = ViewBag.pager.StartIndex-1; i <= ViewBag.pager.EndIndex-1; i++ )
{

    if (Model[i].PublishDate != null)
    {
    ViewBag.i = i;
    @Html.Partial("_oneNews")
    
    }

}
 
